package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.AssessmentPerson;
import com.zhijian.medical.entity.vo.request.AssessmentPersonSearchVo;
import com.zhijian.medical.entity.vo.response.AssessmentPersonVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 考核-人员关系表，目前只有专项培训人员需要 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2023-12-02 15:22:11
 */
public interface AssessmentPersonService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    AssessmentPerson selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    AssessmentPersonVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param assessmentPerson
     * @return
     */
    Long insert(AssessmentPerson assessmentPerson);

    /**
     * 更改
     *
     * @param assessmentPerson
     * @return
     */
    boolean update(AssessmentPerson assessmentPerson);

    /**
     * 动态修改
     *
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(AssessmentPerson record);

    /**
     * 总数
     *
     * @param assessmentPersonSearchVo
     * @return
     */
    Integer count(AssessmentPersonSearchVo assessmentPersonSearchVo);

    /**
     * 列表
     *
     * @param assessmentPersonSearchVo
     * @return
     */
    List<AssessmentPersonVo> selectList(AssessmentPersonSearchVo assessmentPersonSearchVo);

    /**
     * 分页查询
     *
     * @param assessmentPersonSearchVo
     * @return
     */
    Page<AssessmentPersonVo> selectPage(AssessmentPersonSearchVo assessmentPersonSearchVo);

    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities 实例对象列表
     * @return 影响行数
     */
    boolean insertBatch(List<AssessmentPerson> entities);
}